<?php

ini_set('display_errors', '0');

/**
 * Define basedir
 */
$baseDir = dirname(dirname(__FILE__));
define('BASE_DIR', $baseDir);

/**
 * Define config dir
 */
$configpath = $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR;
define('CONFIG_DIR', $configpath);

/**
 * define template dir
 */
$templatepath = $baseDir . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR;
define('TEMPLATE_DIR', $templatepath);

/**
 * define the language dir
 */
$langPath = $baseDir . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR;
define('LANG_DIR', $langPath);

/**
 * define the classpath dir
 */
$classPath = $baseDir . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR;
define('CLASS_DIR', $classPath);

/**
 * Getting the classes path and add it to the includepath
 */
$classpath = $baseDir . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR;
ini_set('include_path',$classpath . PATH_SEPARATOR . ini_get('include_path'));


require_once 'Config.php';